from django.conf.urls import url
from . import views
from rest_framework.routers import DefaultRouter

urlpatterns = [
    # url(r'^test/$',views.UploadView.as_view())
]

# 生成路由
router = DefaultRouter()
router.register(r'books', views.BookModelViewSet, base_name="xixi")
urlpatterns += router.urls